import 'package:flutter/material.dart';

class LoginPhone extends StatefulWidget {
  const LoginPhone({Key? key}) : super(key: key);

  @override
  State<LoginPhone> createState() => _LoginPhoneState();
}

class _LoginPhoneState extends State<LoginPhone> {
  late String _phone;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          '登陆页面',style: TextStyle(fontSize: 12),
        ),
      ),
      body: Container(
        child: Column(
          children: [
            Container(
              height: 70,
              margin: EdgeInsets.only(
                  right: 30,
                  left: 30,
                  top: 10
              ),
              child: TextField(
                maxLength: 11,
                // controller: _phone,
                keyboardType: TextInputType.phone,
                decoration: InputDecoration(
                    hintText: '手机号',
                    fillColor: Colors.black12,
                    filled: true,
                    enabledBorder: OutlineInputBorder(
                      borderSide: BorderSide(color: Colors.white),
                      borderRadius: BorderRadius.all(Radius.circular(8)),
                    ),
                    focusedBorder: OutlineInputBorder(
                      borderSide: BorderSide(color: Colors.white),
                      borderRadius: BorderRadius.all(Radius.circular(8)),
                    )
                ),

              ),
            ),
          ],
        ),
      ),
    );
  }

}
